package com.aabte.permissionframeworklearn.permission.beans;

import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author Daniel
 */
@Data
@Builder
@AllArgsConstructor
public class PageResult<T> {

    private List<T> data;

    private Long total;

    public PageResult() {
        data = Lists.newArrayList();
        total = 0L;
    }
}
